<div>
  <%= link_to "Statement",:action =>"view_mystatement" %>
  <%= link_to "Badday",:action =>"view_mybadday" %>
  <%= link_to "Question",:action =>"view_myquestion" %>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">Category</a>
  <div class="scroll">
    <%if !@category.blank?%>
      <%= link_to "All",{:action =>"view_myquestion"} %>
      <%  @category.each do |cat|%>
        <%= link_to "#{cat.title}",{:action =>"view_myquestion",:cat=>"#{cat.id}"} %>
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">Question</a>
  <div class="scroll">
    <% if !@myquestion.nil? %>
      <% @myquestion.each do |q| %>
        <p><b><%= q.message %></b></p>
        <p>created at :<%= q.created_at %> - by :<%= q.user.login %></p>
        <p>Good question : <%= q.agree %> | Bad question : <%= q.disagree %> </p>
		<% if q.question_emailer.blank?%>
		  <p><%= link_to "Email me",{:controller =>"workspaces",:action =>"question_emailer",:with =>q.id} %></p>
        <%else%>
		 <p><%= link_to "Stop",{:controller =>"workspaces",:action =>"question_emailer",:without =>q.id} %></p>
		<%end%>
        <% if !q.comments.nil? %>
          <p>Comments</p>
          <% q.comments.each do |ans| %>
		  	<% if !ans.message.blank? %>
            <p><%= ans.message %></p>
            <p>created at :<%= ans.created_at %> - by :<%= ans.commentator %></p>
            <p>agree : <%= ans.agree %> | disagree : <%= ans.disagree %> </p>
			<%end%>
          <%end%>
        <%end%>
       <%end%>
    <%end%>
  </div>
</div>
